#!/usr/bin/env python
# -*- coding: utf-8 -*-

# @Time     :2020/08/04
# @Author   :Changshu
# @File     :practice_26.py
# 26. 删除排序数组中的重复项

def removeDuplicates(nums:list)->int:
		nums[:]=sorted(list(set(nums)))
		return len(nums)

if __name__=='__main__':
	print(removeDuplicates([0,0,1,1,1,2,2,3,3,4]))